package com.cskaoyan.market.service.admin;

import com.cskaoyan.market.db.domain.MarketOrder;
import com.cskaoyan.market.db.domain.MarketOrderGoods;
import com.cskaoyan.market.db.domain.MarketUser;

import java.math.BigDecimal;
import java.util.List;

public interface MarketOrderService {
    List<MarketOrder> getMarketOrderList(String[] statusString, String userId, String id, String orderSn, String startTime, String endTime ,String sort , String order,Integer page , Integer limit);

    MarketOrder getMarketOrder(String orderId);

    int getUserIdByOrderId(String orderId);

    MarketUser getUserByOrderId(int userId);

    List<MarketOrderGoods> getMarketOrderGoods(String orderId);

    // 退款功能,通过orderId找到相应的order表把表中订单状态修改为  203: '已退款'
    int refund(Integer orderId, BigDecimal refundAmount);

    int deleteOrder(Integer orderId);

    int shipOrder(Integer orderId, String shipChannel, String shipSn);
}
